package com.jia.product.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;

import java.util.Date;

/**
 * spu信息(SpuInfo)表实体类
 *
 * @author makejava
 * @since 2025-07-08 18:15:29
 */
@Getter
@SuppressWarnings("serial")
@TableName("pms_spu_info")
public class SpuInfo extends Model<SpuInfo> {
    //商品id
    @TableId
    private Long id;
    //商品名称
    private String spuName;
    //商品描述
    private String spuDescription;
    //所属分类id
    private Long catalogId;
    //品牌id
    private Long brandId;

    private Double weight;
    //上架状态[0 - 下架，1 - 上架]
    private Integer publishStatus;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;


    public void setId(Long id) {
        this.id = id;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public void setSpuDescription(String spuDescription) {
        this.spuDescription = spuDescription;
    }

    public void setCatalogId(Long catalogId) {
        this.catalogId = catalogId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public void setPublishStatus(Integer publishStatus) {
        this.publishStatus = publishStatus;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}

